class Student:
    name = "Unknow"

    def SetName(self, name):
        self.name = name

    def PrintName(self):
        print("姓名: {}".format(self.name))

if __name__ =="__main__":
    stu1 = Student()
    stu1.SetName("李晓明")
    stu1.PrintName()